<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let h=+prompt('输入行数:')
        let l=+prompt('输入列数:')
        for(let a=1;a<=h;a++){
            let r=''
            for(let b=1;b<=l;b++){
            r +='*'
            }
            document.write(r)
            document.write('<br>')
        }
    </script>
</body>
</html>